from flask import Blueprint, request, jsonify
from database import db

bp_goods = Blueprint('goods', __name__)


@bp_goods.route('/goods')
def Goods():
    sql = 'select * form cgoods'
    res = db.findall(sql)
    return jsonify({'code': 200, 'list': res})
